package com.codeest.geeknews.model.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.google.gson.annotations.Expose;

import java.io.Serializable;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * Created by admin on 2017/8/23.
 */

public class DoubanLoginBean extends RealmObject implements Serializable {

    //过滤字段
    @JSONField(serialize = false)//fastjson
    @Expose//gson
    @PrimaryKey
    private String id;
    /**
     * access_token : 3ba7968a8f9fea9cb2f6c39faedfbfd4
     * douban_user_name : luckyjmcc
     * douban_user_id : 140242344
     * expires_in : 7775999
     * refresh_token : 9694cdd3129dd5a1c3be697937d980e3
     */

    private String access_token;
    private String douban_user_name;
    private String douban_user_id;
    private int expires_in;
    private String refresh_token;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getDouban_user_name() {
        return douban_user_name;
    }

    public void setDouban_user_name(String douban_user_name) {
        this.douban_user_name = douban_user_name;
    }

    public String getDouban_user_id() {
        return douban_user_id;
    }

    public void setDouban_user_id(String douban_user_id) {
        this.douban_user_id = douban_user_id;
    }

    public int getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
